package news.dao;

import news.model.Comment;
import news.model.News;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface CommentDao {
    List<Comment> commentList(Comment comment);

    @Delete("delete from comment where id = #{id}")
    void delete(Integer id);

    @Update("UPDATE COMMENT SET STATUS = #{status} WHERE id = #{id}")
    void changeS(Integer id, Integer status);

}
